<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>微博后台管理系统</title>
		<link href="../../../common/layui/css/layui.css" rel="stylesheet" media="all" />
		<script type="text/javascript" src="../../../common/js/jQuery-3.3.1.js"></script>
		<script src="../../../common/layui/layui.js"></script>
		<style type="text/css">
			.systemtime {
				font-size: 12px;
				position: relative;
				left: -200px;
				top: -60px;
			}
		</style>
		<script type="text/javascript">
			function showtime() {
				var a = new Date();
				var nowtime = "时间:" + (a.getYear() + 1900) + "年" + (a.getMonth() + 1) + "月" + (a.getDay()+11) + "日 " +
					a.getHours() + ":" + (a.getMinutes() > 9 ? a.getMinutes() : "0" + a.getMinutes()) + ":" +
					(a.getSeconds() > 9 ? a.getSeconds() : "0" + a.getSeconds());
				$(".systemtime").text(nowtime);
				setTimeout('showtime()', 1000);
			}
			
			$(document).ready(function(){	
				//左边导航栏添加点击事件
				$(".left-nav li dl a").click(function(){
					var href = $(this).attr("class")
					var actionhref = $(this).parents(".layui-nav-item").find("a[name]").attr("name");
					$(".maindiv").load("/"+actionhref+"/"+href);
				});
			})
		</script>
	</head>

	<body class="layui-layout-body" onload="showtime()">
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header">
				<div class="layui-logo">
					<img width="40px" height="30px" src="../common/img/huzihan/timg.jpg"> &nbsp;
					<font>微博后台管理系统</font>
				</div>

				<ul class="layui-nav layui-layout-right">
					<li class="layui-nav-item">
						<a href="javascript:;">
							<img src="http://localhost:8082/serverpath/${admin.adminHead}" class="layui-nav-img"> ${admin.adminName}
						</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="javascript:;" class="info">基本资料</a>
							</dd>
							<dd>
								<a href="javascript:;" class="danger">安全设置</a>
							</dd>
						</dl>
					</li>
					<li class="layui-nav-item">
						<a href="/admin/login">退出</a>
					</li>
					<li class="systemtime" style="line-height:63px;font-size:16px"></li>
				</ul>
			</div>
			<div class="layui-side layui-bg-black">
				<div class="layui-side-scroll">
					<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
					<ul class="layui-nav layui-nav-tree left-nav" lay-filter="test">
						
						<li class="layui-nav-item">
							<a href="javascript:;" name="admin">用户管理</a>
							<dl class="layui-nav-child">
								<dd>
									<a href="javascript:;" class="user">查看用户</a>
								</dd>
								<dd>
									<a href="javascript:;" class="blackuser">查看黑名单</a>
								</dd>
							</dl>
						</li>
						<li class="layui-nav-item">
							<a href="javascript:;" name="admin">动态管理</a>
							<dl class="layui-nav-child">
								<dd>
									<a class="weibo" href="javascript:;" data-toggle="modal" data-target="#myModal1">查看动态</a>
								</dd>
							</dl>
						</li>
						<li class="layui-nav-item">
							<a href="javascript:;" name="admin">新闻管理</a>
							<dl class="layui-nav-child">
								<dd>
									<a class="log" href="javascript:;">查看新闻</a>
								</dd>
							</dl>
						</li>

					</ul>
				</div>
			</div>
			<div class="layui-body">
				<!-- 内容主体区域 -->
				<div class="maindiv" style="padding: 15px;">
					<center><h1>欢迎${admin.adminName}登录微博后台管理系统</h1></center>
				</div>
			</div>
			<div class="layui-footer">
				<!-- 底部固定区域 -->
				© weibo.com - 新浪微博
			</div>
		</div>
		<script>
			//JavaScript代码区域
			layui.use('element', function() {
				var element = layui.element;

			});
		</script>
	</body>

</html>